package com.xlh.virtualization.po;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@ApiModel("镜像保存参数")
@Data
public class ImageSavePO {

    @NotBlank(message = "镜像名称不能为空")
    @Length(max = 64, message = "镜像名称不能超过64个字符")
    private String imageName;

    @NotNull(message = "图标不能为空")
    private Integer icon;

    @NotBlank(message = "镜像简介不能为空")
    @Length(max = 1000, message = "镜像简介不能超过1000个字符")
    private String description;

    @NotNull(message = "容器Id不能为空")
    private Long containerId;
}
